{
    "position": "top", // Waybar position (top|bottom|left|right)
    "height": 25, // Waybar height (to be removed for auto height)

    // Choose the order of the modules
    "modules-left": ["sway/workspaces#focus", "sway/mode", "sway/window"],
    "modules-center": ["clock"],
    "modules-right": ["pulseaudio", "battery", "network"],
    // Modules configuration
     "sway/workspaces": {
	 "format": "{icon}",
         "format-icons": {
	     "focused": "",
	 },
    },


    "sway/workspaces#focus": {
         "disable-scroll": true,
         "format": "{icon}",
	 "current-only": true,
         "format-icons": {
             "1": "work",
             "2": "chat",
             "3": "web",
             "4": "extra",
             "5": "anime",
             "6": "extra+",
             "focused": "",
			 "urgent": "",
			 "default": ""
	},
     },


    "sway/mode": {
        "format": "<span font_weight=\"bold\">{}</span>"
    },
    "sway/window": {
	"max-length": 25
	},

    "battery": {
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon} {capacity}%",
        "format-charging": "{capacity}% ⚡ ",
        "format-plugged": " {capacity}%",
        "format-alt": "{time} {icon}",
        // "format-good": "", // An empty format will hide the module
        "format-full": " full of energy",
        "format-icons": ["", "", "", "", ""],
    },

    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "format-wifi": "{icon}",
        "format-ethernet": "🕸",
        "format-disconnected": "Offline V_V",
        "format-alt": "{ifname}: {ipaddr}/{cidr}",
		"format-icons": [ "🗩", "🗪", "🗫", "" ],
        "on-click-right": "if [ $(pgrep connman-gtk) ]; then pkill connman-gtk; else connman-gtk; fi"
    },
    
    "pulseaudio": {
        "format": "{icon} {volume}%",
        "format-muted": " {volume}%",
        "format-bluetooth": "{icon} {volume}%",
        "format-bluetooth-muted": "   {volume}%",
        "format-icons": {
            "headphone": [""],
            "default": ["🕨", "🕩", "🕪"]
        },
        
        "on-click": "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle",
        "on-click-right": "if [ $(pgrep pavucontrol) ]; then pkill pavucontrol; else pavucontrol; fi"
    }
}
